package org.jpush.core.socket;

import java.io.IOException;
import java.net.InetAddress;
import java.net.SocketAddress;

import org.jpush.utils.DataBuffer;

/**
 * 
 * @author wanglei
 *
 */
public interface JPushClientSocket
{
	public int getPort();

	public InetAddress getIPAddress();
	
	public SocketAddress getRemoteAddress();
	
	public int read(DataBuffer buffer) throws IOException;
	
	public int write(DataBuffer buffer) throws IOException;
	
	public void configureBlocking(boolean isBlocking);
	
	public void close();
}
